package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.vo.PageDaoPointsTransferRecordsVO;
import com.sc.nft.entity.vo.salvageEvents.PageDaoEcologyPointsTransferRecordsVO;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.DaoEcologyPointsTransferRecords;
import com.sc.nft.mapper.DaoEcologyPointsTransferRecordsMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * 生态-DAO转账燃料记录表(sc_dao_ecology_points_transfer_records)数据DAO
 *
 * @author Sun
 * @since 2023-12-12 10:43:41
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class DaoEcologyPointsTransferRecordsDao extends ServiceImpl<DaoEcologyPointsTransferRecordsMapper, DaoEcologyPointsTransferRecords> {

    public Page<PageDaoEcologyPointsTransferRecordsVO> getPageDaoEcologyPointsTransferRecords(Long daoId, String toUserTel, Date startTime, Date endTime, Integer pageNo, Integer pageSize) {
        return baseMapper.getPageDaoEcologyPointsTransferRecords(new Page<>(pageNo, pageSize),daoId, toUserTel, startTime, endTime);
    }

    public Page<PageDaoPointsTransferRecordsVO> getPageDaoPointsTransferRecords(Long daoId, String toUserTel, Date startTime, Date endTime, Integer pageNo, Integer pageSize) {
        return baseMapper.getPageDaoPointsTransferRecords(new Page<>(pageNo, pageSize),daoId, toUserTel, startTime, endTime);
    }
}